﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    /// <summary>
    /// SystemModule
    /// </summary>
    public class SystemModule
    {

        /// <summary>
        /// SystemModule 构造函数
        /// </summary>
        public SystemModule()
        { }


        /// <summary>
        /// SystemModule OR映射构造函数
        /// </summary>
        public SystemModule(System.Data.IDataReader dr)
        {
            this.ModuleID = (Guid)dr["ModuleID"];
            this.ModuleFlag = Convert.ToInt32(dr["ModuleFlag"]);
            this.Category = Convert.ToString(dr["Category"]);
            this.ModuleName = Convert.ToString(dr["ModuleName"]);
        }


        /// <summary>
        /// 唯一标识
        /// </summary>
        public Guid ModuleID { get; set; }

        /// <summary>
        /// 标识位
        /// </summary>
        public int ModuleFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Category { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ModuleName { get; set; }

        public override string ToString()
        {
            return string.Format("[根菜单：{0},菜单项：{1}]", this.Category, this.ModuleName);
        }

    }
}
